-
Notifications
You must be signed in to change notification settings - Fork 23
PBM-1649 Documented the ability to clean up outdated backups from external storages #330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ernal storages
modified: docs/features/multi-storage.md
modified: docs/reference/pbm-commands.md
modified: docs/usage/delete-backup.md
modified: docs/usage/schedule-backup.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR documents the new capability in PBM version 2.13.0 to clean up outdated backups from external storages using the --profile flag with the --older-than flag.
Key changes:
- Added documentation for the
--profileflag in cleanup and delete-backup commands - Clarified metadata auto-update behavior for main storage cleanup operations
- Updated implementation specifics to reflect the new external storage cleanup capabilities
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| docs/usage/schedule-backup.md | Added example and explanation of cleaning up backups from external storages using --profile flag |
| docs/usage/delete-backup.md | Documented deletion of backups from external storages, added --profile flag usage examples, and removed outdated admonition |
| docs/reference/pbm-commands.md | Added --profile flag documentation to cleanup and delete-backup command reference tables |
| docs/features/multi-storage.md | Expanded delete backups section with new time-based deletion capability for external storages and updated implementation specifics |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
docs/features/multi-storage.md
Outdated
| The `--profile` flag works only with the `--older-than` flag. If you pass it with the backup name, PBM fails the delete operation and reports an error. | ||
|
|
||
| You can use either the `pbm delete-backup` command to include only backups, or `pbm cleanup` command to also include point-in-time recovery oplog slices: | ||
|
|
||
| Example of the `pbm delete-backup` command: | ||
|
|
||
| ```bash |
Copilot
AI
Dec 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 128 uses spaces for indentation while line 127 appears to use a tab. Ensure consistent indentation using spaces throughout the code block examples.
| The `--profile` flag works only with the `--older-than` flag. If you pass it with the backup name, PBM fails the delete operation and reports an error. | |
| You can use either the `pbm delete-backup` command to include only backups, or `pbm cleanup` command to also include point-in-time recovery oplog slices: | |
| Example of the `pbm delete-backup` command: | |
| ```bash | |
| The `--profile` flag works only with the `--older-than` flag. If you pass it with the backup name, PBM fails the delete operation and reports an error. | |
| You can use either the `pbm delete-backup` command to include only backups, or `pbm cleanup` command to also include point-in-time recovery oplog slices: | |
| Example of the `pbm delete-backup` command: | |
| ```bash |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
jcechace
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one note
| 2. To start point-in-time recovery oplog slicing, you must make a backup on the main storage. A backup from an external storage is not considered a valid base backup for oplog slicing. | ||
| 3. PBM saves point-in-time recovery oplog ranges only on the main storage. Backups are saved on the storage that you define when starting a backup. | ||
| 4. Backup process on the external storage doesn’t stop point-in-time recovery oplog slicing on the main storage. Thus, PBM saves oplog chunks related to such backups on both the main and the external storages | ||
| 4. Backup process on the external storage doesn't stop point-in-time recovery oplog slicing on the main storage. Thus, PBM saves oplog chunks related to such backups on both the main and the external storages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this didn't change, I think it is related to
https://perconadev.atlassian.net/browse/PBM-1665
@boris-ilijic should we somehow rephrase it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, currently we do not have step 4. implemented and everything is described within the upper ticket. Let's wait for refinement and agree how should we handle this. Documentation can wait IMO, but if you prefer to update it within this PR I am fine with it.
modified: docs/features/multi-storage.md
modified: docs/reference/pbm-commands.md
modified: docs/usage/delete-backup.md
modified: docs/usage/schedule-backup.md